module.exports = {
    TABLE_NICK_NAME: '学生管理表', // 表的昵称
    TABLE_DESC: '学生表', // 表的描述
    student_id: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: {
            type: 'text',
            placeholder: '请输入学号'///占位符
        },
        label: "学号",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        },
    },
    passWord:{
        label:'登录密码',
        attr:{type:'password'},
        type:'input'
    },
    name: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text" },
        label: "姓名",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    college: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text" },
        label: "所属学院",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    grade: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text" },
        label: "年级",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    major: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text" },
        label: "专业",
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    email: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text" },
        label: "邮箱",
        unList: true,
        unique: true,
        rule: { "Email": true }
    },
    phone: {
        type: "input",
        data_type: "VARCHAR(255)",
        "attr": { "type": "number" },
        label: "手机号码",
        unList: true,
        unique: true,
        rule: { "Phone": true }
    },
    id_card: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { "type": "number" },
        label: "身份证号",
        unList: true,
        unique: true,
        rule: { "IDCard": true }
    },
    status: {
        label: '类型',
        defaultValue: '1',
        data_type: "INT",
        attr: {
            actions: [
                { name: '在校', value: '1' },
                { name: '毕业', value: '2' },
                { name: '休学', value: '3' },
                { name: '退学', value: '4' }
            ]
        },
        type: 'select',
        rule: {
            MaxLength: 255,
            MinLength: 1,
            NotNull: true,
        }
    },
    create_by: {
        type: "input",
        data_type: "BIGINT",
        attr: { type: "text" },
        label: "创建人",
        rule: {
            NotNull: false,
            readOnly: true
        },
        unList: true,
    },
    update_by: {
        type: "input",
        data_type: "BIGINT",
        attr: { type: "text" },
        label: "更新人",
        rule: { NotNull: false },
        unList: true,
    },
};
